package com.pjbao.Service;


import com.pjbao.Service.model.ReportConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = "com.pjbao.Service")
@SpringBootApplication
@EnableConfigurationProperties(ReportConfig.class)
public class MyApplication implements CommandLineRunner {
    private final Logger log = LoggerFactory.getLogger("api service v1");

    public void run(String... args) throws Exception {
        log.info("-->-->-->-->-->-->-->-->欢迎光临 !  Spring Boot 启动完毕....");
    }

    public static void main(String[] args) {
        SpringApplication.run(MyApplication.class);
    }

}